<template>
    <view class="container">
        <hx-navbar ref="hxnb" :config="config" id="nav"></hx-navbar>
        <micro-temp ref="microTemp" :url="url"></micro-temp>
    </view>
</template>

<script>
import microTemp from "@/pages/micro/temp.vue"
import webViewUrl from "@/pages/micro/webViewUrl.js"
import storage from "@/uni-sub-base/utils/storage.js"
export default {
    components: {
        microTemp,
    },
    data() {
        return {
            config: {
                back: false,
                title: "",
                barPlaceholder: true,
                backgroundColor: [1, "#C4181F"],
            },
            canReturn: false,
            url: "",
        }
    },
    mounted() {
        console.log(12312321)
        this.url = storage.getCache("DefaultSite")
    },
    onShow() {},
    methods: {},
    onBackPress(e) {
        if (e.from == "backbutton") {
            this.easyWebViewGoBack(this.$refs.microTemp.getWebView())
            return true //阻止默认返回行为
        }
    },
}
</script>

<style lang="scss"></style>
